﻿@using SH = EMoney.IStock.Client.Framework.StringHelper;

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>绑定QQ</title>
    <style>html,body{margin:0;padding:0;overflow:hidden;overflow-y:auto;}</style>
    <link rel="stylesheet" type="text/css" href="@ViewBag.PageCss" id="linkcss" />
    <script src="http://static.emoney.cn/js/libs/jquery.min.1.8.3.js" type="text/javascript"></script>
</head>
<body>
    <div class="bound_pop">
      <div id="divBG" class=""><p class="p1"></p><p class="p2"></p><a class="p3" hidefocus="true" href="javascript:;">确定</a></div>
    </div>
    <input type="hidden" id="hidColor" value="@ViewBag.Color" />
    <input type="hidden" id="hidRet" value="@ViewBag.Ret" />
    <input type="hidden" id="hidSuccess" value="@SH.GetStaticFile("IStockClientStatic/qq/images/white_success.png")" />
    <input type="hidden" id="hidFailed" value="@SH.GetStaticFile("IStockClientStatic/qq/images/white_failed.png")" />
</body>
</html>
<script type="text/javascript">
    $(document).ready(function () {
        var ret = $("#hidRet").val();
        //ret = "";
        if (ret == "") {
            $(".p1").html("恭喜您，QQ绑定成功");
            $(".p2").html("下次也可以直接用该QQ账号登录");

            $("#divBG").addClass("bound_success");
        }
        else {
            $(".p1").html("绑定失败");
            $(".p2").html(ret);

            $("#divBG").addClass("bound_failed");
        }
    });
    $(".p3").click(function () {
        parent.location.reload();
    });

    function OnSkinChanged(skinName) {
        var cssHref = "";

        switch (skinName) {
            case "default":
                //hidColor = skinName;
                cssHref = $("#hidWhiteCss").val();
                break;
            case "black":
                //hidColor = skinName;
                cssHref = $("#hidBlackCss").val();
                break;
            default:
                break;
        }

        if (cssHref != "") {
            $("#linkcss").attr("href", cssHref);
        }
    }
</script>